.toolbar-box {
  position: absolute;
  z-index: 999; //Modal为1000，防止遮挡属性中的弹框
  pointer-events: none;
  box-sizing: border-box;
  // transition: all 0.2s;
  font-size: 12px;
  top: -100px;
  left: -100px;
  .tool-bar {
    display: none;
  }
  .node-nav {
    min-width: 48px;
    .node-tip {
      display: block;
      padding-left: 8px;
      padding-right: 8px;
      // transition: all 0.2s;
      height: 24px;
      line-height: 24px;
      cursor: pointer;
      &.parent,
      &.child {
        position: absolute;
        background-color: var(--mars-primary-color);
        opacity: 0;
      }

      &.parent {
        left: 0;
        top: 0;
      }
      &.child {
        left: 0;
        top: 0;
      }
    }
    &:hover {
      .parent {
        opacity: 1;
        border-bottom: 1px solid #fff;
        transform: translateY(-25px);
      }
      .child {
        opacity: 1;
        border-top: 1px solid #fff;
        transform: translateY(25px);
      }
    }
  }
  .actions {
    position: relative;
    padding: 0 12px;
    &::before {
      position: absolute;
      left: 0;
      color: #fff;
      content: '|';
      width: 1px;
    }
  }
  &.hover {
    border: 1px dashed var(--mars-primary-color);
  }
  &.selected {
    border: 1px solid var(--mars-primary-color);
    background-color: rgb(156 105 244 / 10%);
    .tool-bar {
      position: absolute;
      right: -1px;
      top: -25px;
      display: inline-flex;
      background-color: var(--mars-primary-color);
      color: #fff;
      pointer-events: auto;
      min-width: 144px;
      &.bottomRight {
        top: auto;
        bottom: -25px;
      }
      &.bottomLeft {
        left: -1px;
        top: auto;
        bottom: -24px;
      }
    }
  }
}
